package com.zhuangjie.rider.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 骑手注册dto
 *
 * @author zhuangjie
 * @date 2023/12/26
 */
@Data
public class RiderSignUpDTO {
    @ApiModelProperty("手机号码区号前缀")
    @NotBlank(message = "手机号码区号前缀")
    private String phoneAreaCode;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    @ApiModelProperty("验证码")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String fullName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("工作类型/骑手类型（1平台配送员工，2兼职众包）")
    private Short type;

    @ApiModelProperty("经度")
    @TableField("longitude")
    private Double longitude;

    @ApiModelProperty("纬度")
    @TableField("latitude")
    private Double latitude;

    @ApiModelProperty("省份编码")
    private String provinceCode;

    @ApiModelProperty("省份名称")
    private String provinceName;

    @ApiModelProperty("城市编码")
    private String cityCode;

    @ApiModelProperty("城市名称")
    private String cityName;

    @ApiModelProperty("区县编码")
    private String districtCode;

    @ApiModelProperty("区县名称")
    private String districtName;

    @ApiModelProperty("详细地址信息")
    @TableField("detail_address")
    private String detailAddress;

}
